// Copyright DustedPixels.com 2008. All rights reserved.

package com.dustedpixels.ooops;

import org.objectweb.asm.ClassVisitor;

import com.dustedpixels.common.AdapterSupplier;
import com.dustedpixels.ooops.asm.OoopsClassAdapter;

/**
 * @author micapolos@gmail.com (Michal Pociecha-Los)
 */
public final class OoopsFactory {
  private final static Ooops INSTANCE = new OoopsImpl(
      new AdapterSupplier<ClassVisitor>() {
        public ClassVisitor get(ClassVisitor out) {
          return new OoopsClassAdapter(out);
        }
      }); 
  
  /**
   * Returns an instance of {@code Inliner}.
   * 
   * @return an instance of {@code Inliner}.
   */
  public static Ooops get() {
    return INSTANCE;
  }
}
